%h2
  .action= link_to('delete', axis_url(@axis), :method => :delete)
  == Editing #{@axis.name} axis

%h3== Values (#{@axis.axis_values.size} total)
- if @axis.axis_values.size == 0
  %p You have not yet defined any values for this axis.
- else
  %ul#axis-values
    - @axis.axis_values.each do |av|
      %li{ :class => cycle('odd', 'even') }
        = av.name
        .action= link_to('delete', axis_axis_value_url(@axis, av), :method => :delete)

- form_for AxisValue.new(:axis => @axis), :url => axis_axis_values_path(@axis) do |f|
  = f.text_field :name, :class => 'inline text'
  = f.submit 'Add value', :class => 'button'